package com.sky.mall.product.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import lombok.Data;

/**
 * @author jiapeng
 * @email really2008@126.com
 * @date 2021-02-13 14:56:14
 */
@Data
@TableName("pms_category")
public class CategoryEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @TableId
    private Long catId;
    /**
     *
     */
    private String name;
    /**
     *
     */
    private Long parentCid;
    /**
     *
     */
    private Integer catLevel;
    /**
     * 设置逻辑删除
     */
    @TableLogic(value = "1", delval = "0")
    private Integer showStatus;
    /**
     *
     */
    private Integer sort;
    /**
     * ͼ
     */
    private String icon;
    /**
     *
     */
    private String productUnit;
    /**
     *
     */
    private Integer productCount;

    /**
     * 子分类(不在数据表字段中)
     */
    @TableField(exist = false)
    private List<CategoryEntity> children;

}
